package com.jingdianjichi.subject.infra.basic.es;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description: //todo
 * @Author: 张广焱
 * @Date: 2024-02-26 21:24
 */
@Component
@ConfigurationProperties(prefix = "es.cluster")
public class EsConfigProperties {
    private List<EsClusterConfig> esConfig = new ArrayList<>();

    public List<EsClusterConfig> getEsConfig(){
         return esConfig;
    }
    public void setEsConfig(List<EsClusterConfig>esConfig){
        this.esConfig = esConfig;
    }
}
